<div id="mailtrain-subscription-widget-{{cid}}" class="mailtrain-subscription-widget">
    {{#if hasPubkey}}
        <form method="post" id="download-pubkey" action="{{publicKeyUrl}}" style="display: none;">
            <input type="hidden" name="cid" value="{{cid}}">
        </form>
    {{/if}}

    <h3>{{title}}</h3>

    <form class="form" method="post" action="{{subscribeUrl}}">
        <input type="hidden" class="tz-detect" name="tz" value="">
        <input type="hidden" name="address" value="">
        <input type="hidden" class="sub-time" name="sub" value="">
        {{> subscription_custom_fields}}
        <button type="submit">{{#translate}}subscribeToList{{/translate}}</button>
    </form>

    <div class="status"></div>

    <div style="display: none;">
        <div class="spinner" data-status-template="spinner">
            <p>Sending ...</p>
        </div>
        <div class="info" data-status-template="already-subscribed">
            <p>It looks like you are already subscribed to this list.</p>
        </div>
        <div class="success" data-status-template="confirm-notice">
            <h4>Almost Finished</h4>
            <p>We need to confirm your email address. To complete the subscription process, please click the link in the email we just sent you.</p>
        </div>
        <div class="error" data-status-template="error">
            <p>{message}</p>
        </div>
    </div>
</div>
